
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import TabBar from "./components/common/tabbar/tabbar.vue"
import myDirective from '@/components/directive/directive.js'
import ThorUI from 'thorui'; // 引入 ThorUI
import 'thorui/dist/thorui.css'; // 确保引入样式


Vue.config.productionTip = false


Vue.component('TabBar', TabBar);


App.mpType = 'app'

const app = new Vue({
    ...App
})

import Tabbar from '@/components/Tabbar.vue'
app.directive('myDirective', myDirective);
app.component('tabbar', Tabbar);
app.use(ThorUI);

app.$mount()

// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)

  return {
    app
  }
}
// #endif